/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.bbs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wealth.bbs.entity.Board;
import com.wealth.bbs.repository.BoardDao;
import com.wealth.bbs.service.IBoardService;

import iaas.service.impl.BaseServiceImpl;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Component
public class BoardServiceImpl extends BaseServiceImpl<Board> implements IBoardService{

	@Autowired
	private BoardDao boardDao;
	
	/**
	 * 企业+状态
	 */
	@Override
	public List<Board> getBoardByCorpIdAndStatus(Long corpid,Integer status) throws Exception {
		return boardDao.findByCorpIdAndStatusOrderBySeqAsc(corpid, status);
	}

	
}
